<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>支付成功</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
    <div class="card text-center">
        <div class="card-header bg-success text-white">
            <h3>支付成功</h3>
        </div>
        <div class="card-body">
            <div class="mb-4">
                <i class="bi bi-check-circle-fill text-success" style="font-size: 5rem;"></i>
            </div>
            <h4 class="card-title">感谢您的购买！</h4>
            <p class="card-text">
                订单号: <span th:text="${order.orderNo}"></span><br>
                支付金额: ¥<span th:text="${#numbers.formatDecimal(order.totalAmount, 1, 2)}"></span>
            </p>

            <div class="mt-4">
                <a th:href="@{http://localhost:5173/}" class="btn btn-outline-secondary ms-2">
                    回到主页
                </a>
            </div>
        </div>
        <div class="card-footer text-muted">
            支付时间: <span th:text="${#temporals.format(order.paymentTime, 'yyyy-MM-dd HH:mm')}"></span>
        </div>
    </div>
</div>
</body>
</html>